<?php
/**
 * RedCross Application
 *
 */


class Admin_Form_Member_Comment extends RedCross_Form
{
    public function init()
    {
        $this->addElement('textarea', 'comment', array(
            'required' => false,
            'label' => 'Kommentar',
            'rows' => 6,
            'cols' => 50
        ));

        $this->getElement('comment')->removeDecorator('Label');

        $this->addElement('submit', 'submit_comment', array(
            'required' => true,
            'ignore'   => true,
            'label'    => 'Lagre kommentar',
        ));
        $this->getElement('submit_comment')->removeDecorator('Label');
    }

    public function fillForm(Core_Model_Member $member)
    {
        $this->getElement('comment')->setValue($member->comment);
    }
}
